﻿<Window x:Class="RssBar.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tb="clr-namespace:Hardcodet.Wpf.TaskbarNotification;assembly=Hardcodet.Wpf.TaskbarNotification"
        Title="Rss Bar" Width="961" SizeToContent="Height" BorderThickness="2" BorderBrush="White" ShowInTaskbar="True" WindowStyle="None" ResizeMode="NoResize" Topmost="True" Icon="/RssBar;component/Images/Newsfeed-RSS-icon.png"
        Closing="Window_Closing" x:Name="mainWindow">
    <Grid Height="32" Name="Grid">
        <Label Margin="101,0,110,0" Name="linkLabel" HorizontalContentAlignment="Center" FontSize="18"/>
        <Image Source="/RssBar;component/Images/Newsfeed-RSS-icon.png" 
               HorizontalAlignment="Right" 
               Name="btnMessages" 
               VerticalAlignment="Top" 
               MouseDown="btnMessages_MouseDown"
               ToolTip="Wszystkie wiadomości"
               ToolTipService.ShowDuration="5000"/>

        <Image 
               Name="btnInfo" 
               HorizontalAlignment="Right" 
               Margin="0,0,34,0" 
               VerticalAlignment="Top"
               MouseDown="btnInfo_MouseDown" Source="/RssBar;component/Images/info-about-icon.png"
               ToolTip="O programie..."/>
        <Image Name="channelIconInfo" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Left" Stretch="None" Width="Auto"
               MouseDown="channelIconInfo_MouseDown" />
        <Image HorizontalAlignment="Right" Margin="0,0,72,0" Name="btnConfig" Source="/RssBar;component/Images/Configuration-Settings-icon1.png" VerticalAlignment="Top" Height="32" ToolTip="Opcje..." ToolTipService.ShowDuration="5000"
               MouseDown="btnConfig_MouseDown"/>
        <tb:TaskbarIcon Name="notifyIcon" IconSource="/RssBar;component/Images/Newsfeed%20RSS.ico"
                        ToolTip="Kliknij prawym przyciskiem myszy, żeby zobaczyć opcje">
            <tb:TaskbarIcon.ContextMenu>
                <ContextMenu>
                    <MenuItem Name="tmiOptions" Header="Opcje..." Click="tmiOptions_Click"/>
                    <Separator/>
                    <MenuItem Name="tmiClose" Header="Wyjdź" Click="tmiClose_Click" />
                </ContextMenu>
            </tb:TaskbarIcon.ContextMenu>
        </tb:TaskbarIcon>
    </Grid>
    <Window.Background>
        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FFFF9300" Offset="0" />
            <GradientStop Color="#FFF6FF00" Offset="1" />
        </LinearGradientBrush>
    </Window.Background>
</Window>
